<?php

namespace app\api\controller;

use think\Controller;

class Wx extends Controller
{
    public function index()
    {
        $wxService = \think\Loader::model('Wx', 'service');
        $wxService->authDomain();
    }

    public function getConfig()
    {
        $WxService = \think\Loader::model('Wx', 'service');
        $options = $WxService->getJsSign(request()->param('url'));
        //获取签名成功
        $data = array(
            'config' => $options
        );
        $this->customizedResult(true, $data, '获取签名成功', '10000');
    }
}
